lib/mtree: drop redundant name checks
authorLuca BRUNO <luca.bruno@coreos.com>
Wed, 7 Sep 2022 12:33:37 +0000 (12:33 +0000)
committerLuca BRUNO <luca.bruno@coreos.com>
Wed, 7 Sep 2022 12:33:37 +0000 (12:33 +0000)
commit642efe924f71f67e16c2782d725968afb012c3b6
tree94e69d856edc421ec2f408b9d29602c8ea9e3697
parent73eda7966226718aa4ae6637fd43cd81cdbd5fdd
lib/mtree: drop redundant name checks

This drops several NULL checks against filename input argument.
Those checks are both redundant (as filename validation already
checks for that) and dangerous (as they return early without
setting an error value).
src/libostree/ostree-mutable-tree.c